/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author luan
 */
public class Employee {
    String name;
    String DateOfBirth;
    double currentSalary;
    String desgination;
    Employee(){}
    Employee(String name,String birth,double sal,String des){
        this.name=name;
        this.DateOfBirth=birth;
        this.currentSalary=sal;
        this.desgination=des;
    }
    String showEmployeeDetails(){
        return ("name:"+name+"DateOfBirth:"+DateOfBirth+"currentSalary:"+currentSalary+"desgination:"+desgination);
    }
    /**
     * @deprecated
     * explanation of why it was deprecated
     */
   @ Deprecated
   void display(){
       System.out.println("this method is deprecated");
   }
}
